import request from "../util/request";

// 1. 查询所有员工
export function findAllEmps() {
    return request.get(`/emp/list`)
    /*return request.get(`/emp?cmd=list`)*/
}
// 2. 分页查询
export function findByPage(page,pageSize) {
    return request.get(`/emp/findByPage?page=${page}&pageSize=${pageSize}`)
    // return request.get(`/emp?cmd=findByPage&page=${page}&pageSize=${pageSize}`)

}
// 3. 条件查询带分页
export function search(page,pageSize,emp) {
    //return request.post(`/emp?cmd=search&page=${page}&pageSize=${pageSize}`,"emp=" + emp)
    return request.post(`/emp/search?page=${page}&pageSize=${pageSize}`,emp)
}